package gao.xiaolei.dao;

import java.util.Optional;

import gao.xiaolei.entity.TestSystem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository("TestSystemDao")
public interface TestSystemDao extends JpaRepository<TestSystem, String> {

    @Query("select name from TestSystem where id=:id")
    public Optional<String> getSystemName(@Param("id") String id);

    @Query("select addMan from TestSystem where id=:id")
    public Optional<String> getAddMan(@Param("id") String id);
}
